home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jaz_clib.arc
/
JZLFTSTR.C
< prev
next >
Wrap
Text File
|
1989-04-09
|
522b
|
21 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzlftstr.c │
│Return the left n chars from a string │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
char *jzlftstr(fstr,fnum)
char *fstr;
int fnum;
{
static char wstr[256];
strncpy(wstr,fstr,fnum);
*(wstr+fnum) = 0; /* put in the terminating byte */
return(wstr);
}